package gui;

import javax.swing.*;
import database.ProductOperations;
import model.Product;
import java.awt.*;
import java.util.ArrayList;


@SuppressWarnings("serial")
public class tab6 extends JPanel 
{
	private JTabbedPane tp;
	private JPanel p1;
	private JPanel p2;
	private JPanel p3;
	private JPanel p4;
	private JPanel p5;
	private JPanel p6;
	public static ArrayList<Product> prods;
	private ProductOperations po;
	public tab6() 
	{
		this.setPreferredSize(new Dimension(795, 290));
		prods=new ArrayList<Product>();
		po=new ProductOperations();
		prods=po.getProductList();
		po.closeDB();
		
		//Creating Daily tabs
		p1 = new product1();
		p2 = new Cream();
		p3 = new Eggs();
		p4 = new Butter();
		p5 = new Other();
		
		p6 = new options();
		tp = new JTabbedPane();
        tp.addTab("Milk", p1);
    	tp.addTab("Cream", p2);
    	tp.addTab("Eggs", p3);
    	tp.addTab("Butter", p4);
    	tp.addTab("Other", p5);
    	tp.addTab("Options", p6);
    	tp.setTabPlacement(JTabbedPane.RIGHT);
    	add(tp);
	}
	
	
}